package com.mzj.saas.jobs.bill.repository;

import com.mzj.saas.jobs.bill.entity.HouseExpenseOther;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface HouseExpenseOtherRepository extends PagingAndSortingRepository<HouseExpenseOther, String>, JpaSpecificationExecutor<HouseExpenseOther>, JpaRepository<HouseExpenseOther,String> {

    List<HouseExpenseOther> findByIdIn(List<String> Ids);
    List<HouseExpenseOther> findByCommunityIdAndChargeTypeAndEnableStatusAndStatus(String communityId, Integer chargeType, Integer enableStatus, Integer status);

    List<HouseExpenseOther> findByIdInAndEnableStatusAndStatus(List<String> ids, Integer enableStatus, Integer status);

    List<HouseExpenseOther> findByCommunityIdAndChargeTypeAndStatus(String communityId, Integer chargeType, Integer status);

    List<HouseExpenseOther> findByName(String name);

}
